import { reqPlayAllList, reqSongDetail } from "@/api";
const actions = {
    
}
const mutations = {
    updateIsbtnShow(state,value){
        state.isbtnShow = value
    },
    // 切换歌单 更新playlist
    updateplayList(state,value){
        state.playList = value
        // console.log(state.playList)
    },
    // 切换音乐 更新playListIndex
    updateplayListIndex(state,value){
        state.playListIndex = value
        // console.log(state.playListIndex)
    }
}
const state = {
        playList: [{ //播放列表
          al: {
            id: 89039055,
            name: "雨爱抖音版",
            pic: '109951164966568500',
            picUrl: "https://p1.music.126.net/2f6UgY8Jc0Dy6jufMdIZeQ==/109951164966568495.jpg",
            pic_str: "109951164966568495"
          },
          id: 1446137141,
          name: "雨爱（抖音版）",
          ar:[{name: "灏灏灏仔"}]
        }],
        playListIndex: 0, //默认下标为0
        isbtnShow: true, //暂停按钮的显示
        detailShow: false, //歌曲详情页的显示
        lyricList:{},//歌词
        currentTime:0,//当前时间
        duration:0,//歌曲总时长
        isLogin:false,//判断是否登录
        isFooterMusic:true,//判断底部组件是否需要显示
        token:"",
        user:{},//用户信息
      }

const getters = {

}
export default {
    state,
    actions,
    mutations,
    getters
}